package com.example.pc.videodemo.emq.model.call

import android.util.Log
import com.example.pc.videodemo.emq.model.EmqConstant
import com.example.pc.videodemo.emq.model.MqttMassgePostBase
import com.example.pc.videodemo.emq.Publisher

data class CallPublisher(var text: String) : Publisher() {
    override val emq: EmqConstant.androidToServerEnum
        get() = EmqConstant.androidToServerEnum.call
    override val message: MqttMassgePostBase
        get() {
            val postBean = CallPostBeanBase()
            Log.i("TAG", "CallPublisher: "+text )
            val phoneData = CallPostBeanBase.Phone(text)
            postBean.data  = phoneData
            return postBean
        }
}